#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string a, b;
    cin >> a >> b;
    int na = a.length(), nb = b.length();
    int n = na > nb ? na : nb;
    while (a.size() != n)
        a = "0" + a;
    while (b.size() != n)
        b = "0" + b;
    int c = 0;
    string tem = "";
    for (int i = n - 1; i >= 0; i--)
    {
        tem += ((c + (a[i] - '0') + (b[i] - '0')) % 10 + '0');
        c = (c + (a[i] - '0') + (b[i] - '0')) / 10;
    }
    tem += (c + '0');
    int k;
    for (k = tem.length() - 1; k >= 0; k--)
        if (tem[k] != '0')
            break;
    if (k == -1)
        cout << "0";
    else
        for (int i = k; i >= 0; i--)
            cout << tem[i];
    cout << endl;
}